<?php


use app\middleware\WikiAuth;
use app\wiki\controller\Api;
use Webman\Route;

Route::any('/Api/login', [Api::class,'login']);
Route::group('/Api', function() {
    // Route::any('/login', [\app\wiki\controller\Api::class,'login']);
    Route::any('/errorCode', [Api::class,'errorCode']);
    Route::any('/groupList', [Api::class,'groupList']);
    Route::any('/detail', [Api::class,'detail']);
    Route::any('/logout', [Api::class,'logout']);
})->middleware([WikiAuth::class]);
